package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Destination;
import cn.wolfcode.wolf2w.query.DestinationQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 目的地服务接口
 */
public interface IDestinationService {


    Destination get(String id);

    List<Destination> list();

//    List<Destination> getDestByRegionId(String rid);


    Page<Destination> query(DestinationQuery qo);

    void saveOrUpdate(Destination destination);

    Object getDestByDestinationId(String rid);

    void changeHotValue(String id, int hot);

    void delete(String id);

    List<Destination> getToasts(String parentId);

    List<Destination>  getDestByRegionIdForApi(String regionId);

    Destination getByName(String keyword);
}
